﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.MaHaiBo.Entity.Traceability
{
    /// <summary>
    /// 养殖信息
    /// </summary>
    [Table("Farm")]
    public class Farm : Traceability.AuditField
    {
        /// <summary>
        /// 养殖ID
        /// </summary>
        [Key]
        public int farmid {  get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        public string? variety { get; set; }
        /// <summary>
        /// 饲养天数
        /// </summary>
        public int Feedingdays { get; set; }
        /// <summary>
        /// 饲养负责人
        /// </summary>
        public string? FeedingName { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        public string? Source {  get; set; }
        /// <summary>
        /// 饲料品牌
        /// </summary>
        public string? Feedbrand { get; set; }
        /// <summary>
        /// 出栏日期
        /// </summary>
        public DateTime Publicationdate { get; set; }=DateTime.Now;
        /// <summary>
        /// 生产批次
        /// </summary>
        public string? LOT { get; set; }
    }
}
